#pragma once
#include "Windows.h"
#include "iostream"
#include "vector"
#include <stdio.h>
#include <fstream>
#include <string>
#include "GetDir.h"

using namespace std;

class Task {
public:
	Task();
	~Task();
	void initGit(WCHAR* dir);
	void updateGit(WCHAR* dir);
	vector<string> getGitList();
	string programDir = "C:\\";

private:
	void initProgramDir();
	vector<string> gitList;
	void run(const WCHAR* moduleName, WCHAR* parameter, WCHAR* dir);
	void readGitList();
	vector<string> split(string txt, string splitor);
	wchar_t* charToWchar(const char* src);
	void writeFile(string path, string content);
	vector<string> runLog;
};